from graph import *
windowSize(500, 500)
x = int(input("x = "))
y = int(input("y = "))
m = int(input("m = "))
penSize(1)
penColor("Black")
brushColor("Blue")
if x>=0 and m>0 and y>=0 and x+10*m<=500 and y+30*m<=500 and x<=500 and y<=500 and x+10*m<=500 and y+30*m<=500:
    polygon([(x,y),(x+10*m, y), (x+10*m, y+10*m), (x+20*m, y+10*m), (x+20*m, y+20*m), (x+10*m, y+20*m), (x+10*m, y+30*m), (x, y+30*m)])
elif m<=0:
    print("Давай другой масштаб")
else:
    print("Размер фигуры превышает максимальный размер")
run()